package org.yellow.backend.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.yellow.backend.pojo.testtype;
import org.yellow.backend.service.testtypeService;

/**
 * @author: hy
 * @create: 2024-01-01
 */
@RestController
@SuppressWarnings({"all"})
@RequestMapping("/testtype")
public class testtypeController {
    @Autowired
    private testtypeService service;
    @GetMapping("/{id}")
    public testtype getTesttype(@PathVariable("id") int id){
        return service.selectTesttypeById(id);
    }

    @GetMapping("/testId/{testType}")
    public int selectTestId(@PathVariable("testType") String testtype){
        return service.selectTestId(testtype);
    }
}
